Skip to content

Conversation

@yacchin1205
Copy link

This PR is a simplified alternative to #841.

  • Ticket: []
  • Feature flag: disable_share_social_media

Purpose

Add ability to control social media sharing visibility via feature flag, and add a "Copy Link" option to the share menu.

This PR is based on discussions from COS-NII meetings.

Summary of Changes

Screenshot(s)

disable_share_social_media flag disabled (default - social sharing enabled):

osf-enable-social-2026-01-22

disable_share_social_media flag enabled (social sharing disabled):

osf-disable-social-2026-01-22

Side Effects

None expected. The feature flag defaults to disabled (social sharing visible).

QA Notes

  • Test file context menu Share submenu on file list page
  • Test Share dropdown on file detail page
  • Verify "Copy Link" copies the file URL to clipboard
  • With disable_share_social_media flag enabled: only Email and Copy Link should appear
  • With flag disabled: Email, X, Facebook, and Copy Link should all appear

Copy link
Contributor

@futa-ikeda futa-ikeda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. This seems like a much more lightweight option that would make sense for this use-case.

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 55.487% (-0.04%) from 55.529%
when pulling 51f9939 on yacchin1205:feature/disable-share-social-media
into 3141ef7 on CenterForOpenScience:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants